import { Rule, RuleType } from '@midwayjs/validate';
import { ApiProperty } from "@midwayjs/swagger";
export class MapDTO {
  //  swagger 的传参预设 example:约束  ,             description : 说明
  @ApiProperty({ example: '114.06031', description: '搜索地名' })
  @Rule(RuleType.string().required())
  longitude: string;
  @ApiProperty({ example: '22.72174', description: '搜索地名' })
  @Rule(RuleType.string().required())
  latitude: string;
  // required 必填
}